<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>带有伪元素的HTML文件</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        body {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-self: center;
        }

        .container {
            position: relative;
            top: 50%;
            left: 50%;
            z-index: 1;
            font-size: 24px;
            transform: translate(-50%, -50%);

        }


        .container::after {
            content: '';
            width: 48px;
            height: 48px;
            position: absolute;
            bottom: 0;
            right: -10px;
            z-index: -1;
            background-image: url(./img.svg);
        }
    </style>
</head>

<body>

    <span class="container">
        伪元素的DIV。
    </span>

</body>

</html>